package com.my.lucky.model;

import java.math.BigDecimal;
import java.time.LocalDate;

// 用于存储聚合查询结果的类
public class StockAggregation {
    private LocalDate tradeDate;
    private BigDecimal capitalFlow;
    private BigDecimal mainCapitalFlow;

    public StockAggregation(LocalDate tradeDate, BigDecimal capitalFlow, BigDecimal mainCapitalFlow) {
        this.tradeDate = tradeDate;
        this.capitalFlow = capitalFlow;
        this.mainCapitalFlow = mainCapitalFlow;
    }

    // Getters
    public LocalDate getTradeDate() {
        return tradeDate;
    }

    public BigDecimal getCapitalFlow() {
        return capitalFlow;
    }

    public BigDecimal getMainCapitalFlow() {
        return mainCapitalFlow;
    }
}
